package com.ccrfid.rmc6.repository.personnel;

import com.ccrfid.rmc6.entity.personnel.PersonnelTypeEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;


public interface PersonnelTypeRepository extends Repository<PersonnelTypeEntity, Long>, SearchableRepository<PersonnelTypeEntity> {
    //
    //
    PersonnelTypeEntity getById(Long id);

    PersonnelTypeEntity save(PersonnelTypeEntity personnelTypeEntity);

    void deleteById(Long id);

    boolean existsByPersonnelTypeName(String personnelTypeName);
    boolean existsById(Long id);
}
